#!/bin/sh

# 复制项目的文件到对应docker路径，便于一键生成镜像。
usage() {
	echo "Usage: sh copy.sh"
	exit 1
}


# copy sql
echo "begin copy sql "
cp ../sql/ry_20240629.sql ./mysql/db
cp ../sql/ry_config_20240902.sql ./mysql/db

# copy html
echo "begin copy html "
cp -r ../security-ui/dist/** ./nginx/html/dist


# copy jar
echo "begin copy security-gateway "
cp ../security-gateway/target/security-gateway.jar ./security/gateway/jar

echo "begin copy security-auth "
cp ../security-auth/target/security-auth.jar ./security/auth/jar

echo "begin copy security-visual "
cp ../security-visual/security-monitor/target/security-visual-monitor.jar  ./security/visual/monitor/jar

echo "begin copy security-modules-system "
cp ../security-modules/security-system/target/security-modules-system.jar ./security/modules/system/jar

echo "begin copy security-modules-file "
cp ../security-modules/security-file/target/security-modules-file.jar ./security/modules/file/jar

echo "begin copy security-modules-job "
cp ../security-modules/security-job/target/security-modules-job.jar ./security/modules/job/jar

echo "begin copy security-modules-gen "
cp ../security-modules/security-gen/target/security-modules-gen.jar ./security/modules/gen/jar

